package com.sn.author.utils;

import java.util.Properties;

/**
 * @Author xiaom
 * @Date 2020/10/16 14:16
 * @Version 1.0.0
 * @Description <>
 **/
public class SystemUtils {

    public static boolean isOSLinux() {
        Properties prop = System.getProperties();

        String os = prop.getProperty("os.name");
        if (os != null && os.toLowerCase().contains("linux")) {
            return true;
        } else {
            return false;
        }
    }

}
